<template>
  <div>详情 {{user}} {{id}} </div>
</template>

<script>
export default {
  props: ['user', 'id'],
  // 获取路由参数通过$route.params
  created () {
    console.log('发请求', this.$route.params.id)
  }
}
</script>

<style>

</style>
